/**
 * Created by seeker910 on 2014/8/26.
 * @description 组件名称命名约定：继承container组件，名称以ViewPart结尾;继承control组件，名称以Part结尾
 * 联系我们组件
 */
Rsd.define('Rsd.hermit.sections.FindUsViewPart', {
    extend: 'Rsd.container.Component',
    requires: [
        'Rsd.form.Label',
        'Rsd.hermit.sections.SvgContentPart',
        'Rsd.hermit.sections.HtmlContentPart',
        'Rsd.hermit.sections.SNSAccountPart'
    ],
    xtype: 'findus-view',
     /**
     * @description 标识该组件是否允许编辑
     */
    domEditable:true,
     /**
     * @description true:表示只允许在模板中修改
     */
    editInMaster:false,
    header:{
        position:'top',
        content:'Find Us',
        height:100,
        style:{
            textAlign:'left',
            fontSize:'200%',
            fontWeight:'bold'
        },
    }, 
    layout:'vbox', 
    items:[
        {
            xtype:'svg-content',
            flex:1,
            width:'100%', 
            dataSource:{
                 title:'Address:',
                text:'1234 Heaven Stress, Beverly Hill, Melbourne, USA.',
                svg:{
                  viewBox:"0 0 1024 1024" ,
                  paths:[
                    "M497.6 713.6l14.4 12.2 14.7-11.9c10.2-8.3 250.5-205.4 250.5-385.1 0-146.1-118.8-264.9-264.9-264.9S247.4 182.7 247.4 328.8c0 170.9 239.9 376.1 250.2 384.8z m14.7-604.2c120.9 0 219.3 98.4 219.3 219.3 0 134.6-167.8 292.2-219 337.2C461.5 619.6 293 456.6 293 328.8c0-121 98.4-219.4 219.3-219.4z" ,
                    "M620.5 340.2c0-59.7-48.6-108.2-108.2-108.2-59.7 0-108.2 48.6-108.2 108.2s48.6 108.2 108.2 108.2c59.7 0 108.2-48.5 108.2-108.2z m-170.9 0c0-34.5 28.1-62.7 62.7-62.7 34.5 0 62.7 28.1 62.7 62.7s-28.1 62.7-62.7 62.7c-34.6-0.1-62.7-28.2-62.7-62.7zM947.8 913.5L771.4 637.7c-5.3-6.6-13.4-10.4-21.9-10.4H654v56.4h82.1l130.7 219.4H160.4l139.7-219.4h70.5v-56.4h-83.3c-8.2 0-15.9 3.6-21.3 9.7L77.4 912.8c-7.2 8.3-8.9 20.1-4.3 30.2 4.6 10 14.6 16.5 25.6 16.5H926c10.9 0 20.8-6.2 25.4-16.1 4.6-9.8 3.2-21.4-3.6-29.9z",
                    "M342 801.8h340.6v56.4H342z"
                 ],
                 fill:"#d4237a" 
                }
            }
        },
        {
            xtype:'svg-content',
            flex:1,
            width:'100%', 
            dataSource:{
                title:'Phone:',
                text:'+86 13913912545',
                svg:{
                    viewBox:"0 0 1024 1024" ,
                    path:"M717.127372 958.385007c-57.308945 0-131.29858-38.175917-183.284333-70.209198-69.608206-42.901713-144.60116-102.24248-211.166829-167.099307l-0.240237-0.234841-21.133671-21.140667c-64.856827-66.562671-124.197994-141.559623-167.095309-211.201805-32.030683-51.982156-70.218192-125.97379-70.218192-183.284733 0-61.334215 43.857665-126.426483 62.712281-151.567837 14.710027-19.620697 66.118971-83.634096 109.795758-83.634096 17.933841 0 37.246547 11.737442 62.631336 38.064592 22.451778 23.276219 43.995571 52.211601 58.113999 72.387321 18.961144 27.085636 36.497255 55.44281 49.382519 79.856257 20.861856 39.524602 23.276019 56.477508 23.276019 65.787196 0 18.791659-9.813746 35.091208-29.169223 48.442556-12.744759 8.79044-28.040988 15.405555-42.83236 21.807215-9.981233 4.317473-25.910433 11.204403-31.99071 16.050518 2.121562 8.979912 11.391277 30.667208 36.433298 67.434679 23.336178 34.26217 53.513118 71.425374 80.777033 99.420393 27.989423 27.258519 65.112654 57.442854 99.389414 80.774035 36.748884 25.035026 58.43618 34.307739 67.429083 36.428302 4.831724-6.071883 11.732046-22.004081 16.041124-31.979318 6.398662-14.799966 13.016175-30.098593 21.812211-42.842753 13.351947-19.351879 29.653895-29.164227 48.437959-29.164227 9.316683 0 26.265192 2.412364 65.79639 23.270223 24.411449 12.887262 52.776018 30.425372 79.857657 49.387315 20.170325 14.121426 49.105506 35.661821 72.383724 58.110601 26.32715 25.38359 38.060195 44.694497 38.060195 62.636333 0 43.67319-64.004405 95.079336-83.621105 109.790362C843.558451 914.533938 778.45779 958.385007 717.127372 958.385007L717.127372 958.385007 717.127372 958.385007zM359.40191 683.627093c63.857105 62.204625 135.573681 118.976934 201.967666 159.890194 64.364161 39.669904 121.139467 62.41848 155.757996 62.41848 30.841889 0 74.809079-18.83423 117.621852-50.372647 18.762279-13.837618 35.839701-29.239176 48.091394-43.373593 11.495206-13.271002 15.698357-21.924135 16.764634-25.418766-4.444986-9.549525-30.824901-39.379101-92.396155-81.853303-24.152625-16.662703-49.124693-31.970124-70.312128-43.114568-26.60776-13.989515-37.69944-16.40088-40.231523-16.796612-0.990329 0.677541-3.887364 3.0979-8.291378 10.483892-4.929658 8.264397-9.673441 19.221968-14.256334 29.817584-5.63418 13.048153-11.473221 26.537008-18.631368 37.422627-11.641107 17.701998-25.932418 26.683908-42.475202 26.693902-0.297798 0-0.614583-0.003997-0.935366-0.019986-8.046544-0.167886-32.558725-0.685535-99.108604-46.006608-36.736892-25.03003-76.635841-57.478829-106.71045-86.814939l-0.470681-0.463686c-29.329115-30.0884-61.776915-69.977355-86.802948-106.748824-45.328667-66.544683-45.854711-91.058063-46.023596-99.113001-0.359156-16.846578 8.531616-31.384721 26.414491-43.22949 10.938584-7.238492 24.538763-13.123103 37.692245-18.815643 10.593218-4.580894 21.547791-9.319681 29.817184-14.245342 7.381995-4.402015 9.813746-7.303448 10.483292-8.28838-0.397331-2.539278-2.811694-13.629159-16.80001-40.233522-11.139447-21.186036-26.451466-46.160503-43.108173-70.30973-42.4776-61.577051-72.311373-87.954167-81.850705-92.398154-3.49563 1.071673-12.154159 5.273425-25.420765 16.765633-14.139813 12.243099-29.541371 29.329115-43.366997 48.094792-31.545612 42.805378-50.379243 86.774567-50.379243 117.617455 0 34.618928 22.747577 91.388239 62.412484 155.757996 40.920256 66.428761 97.694563 138.144938 159.890594 201.998445L359.40191 683.627093 359.40191 683.627093 359.40191 683.627093zM671.568461 495.377126c-9.156792 0-17.264295-6.561551-18.90918-15.892225-4.703811-26.674315-20.148339-49.854599-43.498508-65.26515-23.678946-15.624806-52.619124-21.428471-81.496545-16.337923-10.458909 1.847747-20.430148-5.137517-22.266903-15.590829-1.845749-10.455511 5.134519-20.42755 15.58943-22.2713 38.602827-6.803787 77.439296 1.048289 109.352659 22.117404 32.251134 21.285968 53.625442 53.486536 60.183995 90.674723 1.840752 10.454312-5.139515 20.426151-15.593428 22.266303C673.797949 495.279792 672.674711 495.377126 671.568461 495.377126L671.568461 495.377126zM787.287603 445.735983c-9.151795 0-17.260298-6.561551-18.906182-15.88523-9.128811-51.7697-39.040331-96.71123-84.23269-126.539806-45.523135-30.045629-101.097256-41.216455-156.484504-31.446679-10.458909 1.842751-20.421154-5.140515-22.266903-15.593428-1.845749-10.453313 5.134519-20.426151 15.58943-22.268902 65.109656-11.478617 130.57507 1.736423 184.340617 37.226161 54.095323 35.705192 89.934824 89.665007 100.920376 151.94718 1.838753 10.453313-5.140515 20.425551-15.594427 22.268302C789.521089 445.638049 788.396851 445.735983 787.287603 445.735983L787.287603 445.735983zM941.792449 431.406698c-9.151795 0-17.264095-6.560952-18.903983-15.889627-15.57544-88.3483-66.581658-165.012721-143.621225-215.85565-77.367345-51.063779-171.765143-70.053304-265.800187-53.474544-10.454912 1.842751-20.417557-5.137517-22.263305-15.591829-1.841152-10.454512 5.136118-20.426551 15.593827-22.267902 103.753455-18.296995 208.042347 2.74374 293.654103 59.24763 85.935536 56.722942 142.871733 142.407048 160.299917 241.266821 1.841751 10.452913-5.144512 20.424552-15.597425 22.268902C944.025934 431.308765 942.902696 431.406698 941.792449 431.406698L941.792449 431.406698z",
                    fill:"#d4237a" 
                }
                
            }
        },
        {
            xtype:'svg-content',
            flex:1,
            width:'100%',
            dataSource:{ 
                title:'Email:',
                text:'support@redmicro.cn',
                svg:{
                    viewBox:"0 0 1024 1024" ,
                    path:"M912.096 403.114L551.207 92.002c-11.613-10.012-26.454-15.526-41.788-15.526s-30.175 5.514-41.788 15.526l-360.89 311.112c-25.544 8.407-44.043 32.475-44.043 60.797v419.841c0 35.29 28.71 64 64 64H892.14c35.29 0 64-28.71 64-64V463.911c0-28.322-18.499-52.39-44.044-60.797z m-337.858 175.9l-43.925-37.867c-10.505-9.056-25.427-10.189-37.038-3.396a32.046 32.046 0 0 0-4.751 3.396l-58.306 50.264-36.206 31.212-185.161-158.712h601.136l-185.164 158.71-50.585-43.607z m-447.54-101.227L344.983 664.89 126.698 853.066V477.787z m382.721 129.847l94.449 81.424 0.062 0.051 225.787 194.644H189.121l320.298-276.119z m164.434 57.255L892.14 477.787v375.279L673.853 664.889zM509.419 140.477l300.943 259.434H208.476l300.943-259.434z",
                    fill:"#d4237a" 
                 }
            }
        },
        {
            xtype:'html-content',
            flex:2,
            width:'100%',
            html:'<h2>Our is .....</h>'
        },
        {
            xtype:'sns-account',
            flex:1,
            width:'100%',
            dataSource:[
                {
                    label:'Facebool',
                    flex:1
                },
                {
                    label:'x',
                    flex:1
                },
                {
                    label:'Linked in',
                    flex:1
                },
                {
                    label:'google',
                    flex:1
                }
            ]
        }
    ],
    /*
     * */
    constructor: function FindUsViewPart(config) {
        config = config || {};
        this.apply(config);
    }
     
});